package smetana.mapper;

import smetana.domain.IntId;

import java.util.List;

/**
 *
 * @author dmitry.mamonov
 */
public abstract interface AbstractEntityMapper<E extends IntId> {
    E findById(int id);
    List<E> listAll();
    int insert(E entity);
    int update(E entity);
    int delete(int id);
    int nextId();
}